package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.UserDao;
import com.itheima.pojo.LoginInfo;
import com.itheima.service.LoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * 登陆界面修改用户界面
 */
@Service(interfaceClass = LoginUserService.class)
@Transactional
public class LoginUserServiceImpl implements LoginUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public void editUser(LoginInfo loginInfo) {
        userDao.editLoginNewPassword(loginInfo);
    }
}
